package com.fyl.enums;

import lombok.Data;
import lombok.Getter;

/**
 * @author 冯永龙
 * @date 2020/12/2 9:42
 */

@Getter
public enum ResultEnum {
    USER_NOT_EXIST(0, "用户为空"),
    USER_SAVE_FAIL(0, "订单为空"),
    ORDER_NOT_EXIST(0, "订单为空");

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    private Integer code;
    private String msg;
}
